package com.example.demo.jsonplaceholder;

public class Post {

    private final Integer useId;
    private final Integer id;
    private final String title;
    private final String body;

    public Integer getUseId() {
        return useId;
    }

    public Integer getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getBody() {
        return body;
    }

    public Post(Integer useId, Integer id, String title, String body) {
        this.useId = useId;
        this.id = id;
        this.title = title;
        this.body = body;
    }

    @Override
    public String toString() {
        return "post{" +
                "useId=" + useId +
                ", id=" + id +
                ", title='" + title + '\'' +
                ", body='" + body + '\'' +
                '}';
    }
}
